﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Zwms.Client.CommonUI;

namespace Zwms.Client.InWms
{
    public partial class InDateSelectForm : BaseForm
    {
        public DateTime SelectedDateTime { get; set; }
        public InDateSelectForm()
        {
            InitializeComponent();
            ServiceReferenceZwms.ServiceZwmsClient client = new ServiceReferenceZwms.ServiceZwmsClient();
            dateTimePicker1.Value = client.GetCurrentSystemTime();
            SelectedDateTime = dateTimePicker1.Value;
        }

        private void btnConfirm_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }

        private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
        {
            SelectedDateTime = dateTimePicker1.Value;
        }
    }
}
